document.write("<script language=javascript src='../sourceControl/js/jquery.min.js'></script>");
// document.write("<script language=javascript src='../sourceControl/js/api.js'></script >");

// const fine_port = "http://11.15.237.162:8014/"; // 接口地址
// const vehicle_port = "http://11.16.127.79:8013/" // 轨道图
// const satellite_port = "http://11.16.125.18:9090/" // 卫星地图
// const Event_port = "http://11.16.125.16:5599/"
// const index_port = "http://192.168.82.29:8014/"
// const lock_port = "http://192.168.82.27:8014/"
// const Warn_port = "http://192.168.82.59:8014/"
// const static_port = "http://192.168.82.28:8013/"
// const JSCBBy_port = "http://192.168.82.60:8014/"
const fine_port = "http://11.15.237.162:8014/"; // 接口地址
const vehicle_port = "http://11.16.127.79:8013/" // 轨道图
const satellite_port = "http://11.16.125.18:9090/" // 卫星地图
const Event_port = "http://11.16.125.16:5599/"
const index_port = "http://11.15.237.162:8014/"
const lock_port = "http://11.15.237.162:8014/"
const Warn_port = "http://11.15.237.162:8014/"
const static_port = "http://11.16.127.79:8013/"
const JSCBBy_port = "http://11.15.237.162:8014/"
// 接口地址整合
const api = {
  findJSCBBySiteIdForPage:'VIAS/web/site/findJSCBBySiteId', // 获取区中举报
  findMuckInSiteByTime:'VIAS/web/site/findMuckInSiteByTime', // 涉嫌地图
  queryCar:'VIAS/web/abnormalVehicle/queryCar',
  getBuildSiteInfo:'build/site/getBuildSiteInfo',
  findByMuckTruckLeaderUse:'VIAS/web/ztc/findByMuckTruckLeaderUse', //抓拍图数据
  VehicleZYZBycph:'VIAS/web/ztc/findMotorVehicleZYZBycph', // 是否有违规
  isSaveEvent:'VIAS/web/UrbanManagement/isSaveEvent', // 是否受理
  findAllProject:'vias/web/project/findAllProject', // 获取首页
  getLockSite:'VIAS/web/site/getLockSite',
  WarningSite:'/vias/web/zfld/zdqy/findEarlyWarningSite',
  findStaticData: 'site/findStaticData', //出入口抓拍，卫星定位研判
  findJSCBBySiteIdNew: 'VIAS/web/site/findJSCBBySiteIdNew', //群众举报
  earlyWarning: 'site/earlyWarning', //报警
  getDevId:'site/getDeviceIdBySiteId',
  getStaeImg:'vias/web/site/findSatelliteRockerImage',
  findAllTwo: 'vias/web/project/findAllTwo', //  全部工地信息
  findStreetInfo:'vias/web/project/findStreetInfo',
  queryAllCount:'vias/web/zfld/zdqy/findEarlyWarningSiteAllCount'


 
}
/**  
 * ajax post提交  
 * @param url  
 * @param param  
 * @param datat 为html,json,text  
 * @param callback回调函数  
 * @return  
 */
function sendAjax (type, url,param, callback) {
  $.ajax({
    type: type,
    url: fine_port+url,
    data: param,
    dataType: 'json',
    success: callback,
    error: function () {
     alert('接口失败')
    }
  });
}
function otherAjax (type, url, param, callback) {
  $.ajax({
    type: type,
    url: vehicle_port + url,
    data: param,
    dataType: 'json',
    success: callback,
    error: function () {
      alert('接口失败')
    }
  });
}
function satelliteAjax (type, url, param, callback) {
  $.ajax({
    type: type,
    url: satellite_port + url,
    data: param,
    // dataType: 'json',
    success: callback,
    error: function () {
      alert('接口失败')
    }
  });
}

function EventAjax (type, url, param, callback) {
  $.ajax({
    type: type,
    url: Event_port + url,
    data: param,
    // dataType: 'json',
    success: callback,
    error: function () {
      // alert('接口失败')
    }
  });
}
function indexAjax (type, url, param, callback) {
  $.ajax({
    type: type,
    url: index_port + url,
    data: param,
    dataType: 'json',
    success: callback,
    error: function () {
      alert('接口失败')
    }
  });
}
function lockAjax (type, url, param, callback) {
  $.ajax({
    type: type,
    url: lock_port + url,
    data: param,
    dataType: 'json',
    success: callback,
    error: function () {
      alert('接口失败')
    }
  });
}
function WornkAjax (type, url, param, callback) {
  $.ajax({
    type: type,
    url: Warn_port + url,
    data: param,
    dataType: 'json',
    success: callback,
    error: function () {
      alert('接口失败')
    }
  });
}
function staticAjax (type, url, param, callback) {
  $.ajax({
    type: type,
    url: static_port + url,
    data: param,
    dataType: 'json',
    success: callback,
    error: function () {
      alert('接口失败')
    }
  });
}


function JSCBByAjax (type, url, param, callback) {
  $.ajax({
    type: type,
    url: JSCBBy_port + url,
    data: param,
    dataType: 'json',
    success: callback,
    error: function () {
      alert('接口失败')
    }
  });
}